package com.mach.platform.repository;

import com.mach.platform.domain.OrderData;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDataRepo extends BaseRepository<OrderData> {

    @Query(value = "select * from order_data where order_id = ?1 ORDER BY create_time asc", nativeQuery = true)
    List<OrderData> getDataByOrderId(Long id);
}
